<UserControl x:Class="WPFExcelReport.Chart.AreaType"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:eternal="clr-namespace:Eternal.DataVisualization;assembly=Eternal.DataVisualization.WPF"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.Triggers>
            <EventTrigger RoutedEvent="Grid.Loaded">
                <BeginStoryboard>
                    <Storyboard >
                        <DoubleAnimation From="0" To="1" Storyboard.TargetName="Chart" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)"></DoubleAnimation>
                        <PointAnimation  From="1,1" To="0,0" Storyboard.TargetName="Chart" Storyboard.TargetProperty="(UIElement.RenderTransformOrigin)"></PointAnimation>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </Grid.Triggers>
        <eternal:CartesianChart  x:Name="Chart" RenderTransformOrigin="0.5, 0.5">
            <eternal:CartesianChart.RenderTransform>
                <ScaleTransform ></ScaleTransform>
            </eternal:CartesianChart.RenderTransform>
            <eternal:CartesianChart.XAxis>
                <eternal:XAxis Header="{Binding Source={Localization:Translate Word=Date}}"/>
            </eternal:CartesianChart.XAxis>
            <eternal:CartesianChart.YAxis>
                <eternal:YAxis Header="{Binding Source={Localization:Translate Word=Number}}"/>
            </eternal:CartesianChart.YAxis>
            <eternal:AreaSeries ItemsSource="{Binding DATA1}" PrimaryPath="Category" SecondaryPath="Number">
            </eternal:AreaSeries>
        </eternal:CartesianChart>
    </Grid>
</UserControl>
